import {createRouter, createWebHashHistory} from 'vue-router'
import ShopIndex from '../view/shopIndex.vue'
import digital from '../view/Digital.vue'
import admin from '../view/admin.vue'
import  user from '../view/manage/user.vue'
import goods from '../view/manage/goods.vue'
const routes = [
    {
        path: '/',
        component: ShopIndex
    },
    {
        path: '/digital',
        component: digital
    },
    {
        path: '/admin',
        component: admin,
        children: [
            {
                path: '/manage/user',
                component: user,
            },
            {
                path: '/manage/goods',
                component: goods,
            },
        ],
    }


]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router